package com.ruoyi.mes.systembasic.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mes.systembasic.mapper.SmesEmployeePostMapper;
import com.ruoyi.mes.systembasic.domain.SmesEmployeePost;
import com.ruoyi.mes.systembasic.service.ISmesEmployeePostService;

/**
 * 员工与岗位关联Service业务层处理
 * 
 * @author yanqin
 * @date 2020-11-24
 */
@Service
public class SmesEmployeePostServiceImpl implements ISmesEmployeePostService 
{
    @Autowired
    private SmesEmployeePostMapper smesEmployeePostMapper;

    /**
     * 查询员工与岗位关联
     * 
     * @param employeeId 员工与岗位关联ID
     * @return 员工与岗位关联
     */
    @Override
    public SmesEmployeePost selectSmesEmployeePostById(Long employeeId)
    {
        return smesEmployeePostMapper.selectSmesEmployeePostById(employeeId);
    }

    /**
     * 查询员工与岗位关联列表
     * 
     * @param smesEmployeePost 员工与岗位关联
     * @return 员工与岗位关联
     */
    @Override
    public List<SmesEmployeePost> selectSmesEmployeePostList(SmesEmployeePost smesEmployeePost)
    {
        return smesEmployeePostMapper.selectSmesEmployeePostList(smesEmployeePost);
    }

    /**
     * 新增员工与岗位关联
     * 
     * @param smesEmployeePost 员工与岗位关联
     * @return 结果
     */
    @Override
    public int insertSmesEmployeePost(SmesEmployeePost smesEmployeePost)
    {
        return smesEmployeePostMapper.insertSmesEmployeePost(smesEmployeePost);
    }

    /**
     * 修改员工与岗位关联
     * 
     * @param smesEmployeePost 员工与岗位关联
     * @return 结果
     */
    @Override
    public int updateSmesEmployeePost(SmesEmployeePost smesEmployeePost)
    {
        return smesEmployeePostMapper.updateSmesEmployeePost(smesEmployeePost);
    }

    /**
     * 批量删除员工与岗位关联
     * 
     * @param employeeIds 需要删除的员工与岗位关联ID
     * @return 结果
     */
    @Override
    public int deleteSmesEmployeePostByIds(Long[] employeeIds)
    {
        return smesEmployeePostMapper.deleteSmesEmployeePostByIds(employeeIds);
    }

    /**
     * 删除员工与岗位关联信息
     * 
     * @param employeeId 员工与岗位关联ID
     * @return 结果
     */
    @Override
    public int deleteSmesEmployeePostById(Long employeeId)
    {
        return smesEmployeePostMapper.deleteSmesEmployeePostById(employeeId);
    }
}
